const Layout = () => import("@/layout/index.vue");

// 跟进管理
// 今日跟进
// 客资公海
// 客资上传
// 客资统计

const routes = [
    {
        path: "/member",
        name: "Member",
        component: Layout,
        meta: {
            title: "客资管理",
            icon: "User",
            affix: true,
            keepAlive: true,
            alwaysShow: true,
        },
        children: [
            {
                path: "/member/mine",
                name: "MemberMine",
                component: () => import("@/pages/member/mine.vue"),
                meta: {
                    title: "我的客资",
                    icon: "user",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            },
            {
                path: "/member/today",
                name: "MemberToday",
                component: () => import("@/pages/member/today.vue"),
                meta: {
                    title: "今日跟进",
                    icon: "today",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            },
            {
                path: "/member/checkin",
                name: "MemberCheckIn",
                component: () => import("@/pages/member/checkin.vue"),
                meta: {
                    title: "进店管理",
                    icon: "sea",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            },
            {
                path: "/member/sea",
                name: "MemberSea",
                component: () => import("@/pages/member/sea.vue"),
                meta: {
                    title: "客资公海",
                    icon: "sea",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            },
            {
                path: "/member/upload",
                name: "MemberUpload",
                component: () => import("@/pages/member/upload.vue"),
                meta: {
                    title: "客资上传",
                    icon: "upload",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                }
            },
            {
                path: "/member/analytics",
                name: "MemberAnalytics",
                component: () => import("@/pages/member/analytics.vue"),
                meta: {
                    title: "客资统计",
                    icon: "analytics",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                }
            }
        ]
    }
];

export default routes;
